package com.secondshop.models;

public class Item {
	private int id;
	private Good good;
	private int number=1;
	private float sumMoney;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Good getGood() {
		return good;
	}
	public void setGood(Good good) {
		this.good = good;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public float getSumMoney() {
		return this.getNumber()*this.good.getPrise();
	}
	
	

}
